package com.hziee.cosmanage.companymanage.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hziee.common.utils.PageUtils;
import com.hziee.common.utils.Query;

import com.hziee.cosmanage.companymanage.dao.CharacterDao;
import com.hziee.cosmanage.companymanage.entity.CharacterEntity;
import com.hziee.cosmanage.companymanage.service.CharacterService;


@Service("characterService")
public class CharacterServiceImpl extends ServiceImpl<CharacterDao, CharacterEntity> implements CharacterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CharacterEntity> page = this.page(
                new Query<CharacterEntity>().getPage(params),
                new QueryWrapper<CharacterEntity>()
        );

        return new PageUtils(page);
    }

}